package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.MedicalCompany;

public interface MedicalCompanyDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 根据自定义条件查找
	 * @param hql
	 * @param pageNum
	 * @return
	 */
	public abstract List<MedicalCompany> findAllByCondition(String hql,
			Integer pageNum);

	/**
	 * 获取页数(对查找想要的DepartmentPositionCost记录分页)
	 * @return
	 */
	public abstract List<Integer> selectPageTotal(String tempHQL);

	/**
	 * 根据简写进行收索
	 * @param medicalCompany
	 * @return
	 */
	public abstract List<MedicalCompany> findByMcnameSimple(
			MedicalCompany medicalCompany);
	/**
	 * 根据简写进行模糊查询
	 * @param medicalCompany
	 * @return
	 */
	public abstract List<MedicalCompany> findByLikeMcnameSimple(MedicalCompany medicalCompany);
	/**
	 * 新增
	 * @param medicalCompany
	 */
	public abstract void save(MedicalCompany medicalCompany);

	/**
	 * 修改
	 * @param medicalCompany
	 */
	public abstract void update(MedicalCompany medicalCompany);

	/**
	 * 删除
	 * @param medicalCompany
	 */
	public abstract void delete(MedicalCompany medicalCompany);

}